]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: don't show Not Listed? button before user list
authorRay Strode <rstrode@redhat.com>
Wed, 26 Jun 2013 14:52:02 +0000 (10:52 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 26 Jun 2013 14:53:39 +0000 (10:53 -0400)
Right now, there's a weird flicker at start up where the
Not Listed? button shows up before the user list, which looks
pretty bad if you're watching for it.

This commit fixes that problem by hiding the Not Listed button
initially and showing it at the appropriate time.

https://bugzilla.gnome.org/show_bug.cgi?id=703132

js/gdm/loginDialog.js

index af5103a276a6f20a25029fa71b877bc497a07fba..6b00007105c6e6af08e0a6837a2264c58ef49132 100644 (file)
@@ -621,6 +621,7 @@ const LoginDialog = new Lang.Class({
                                                 x_fill: true });
 
         this._notListedButton.connect('clicked', Lang.bind(this, this._hideUserListAndLogIn));
+        this._notListedButton.hide();
 
         this._userSelectionBox.add(this._notListedButton,
                                    { expand: false,
@@ -1153,6 +1154,7 @@ const LoginDialog = new Lang.Class({
     _showUserList: function() {
         this._hidePrompt();
         this._setUserListExpanded(true);
+        this._notListedButton.show();
         this._userList.actor.grab_key_focus();
     },